package com.server.sercurity.exception;

import org.springframework.security.core.AuthenticationException;

/**
 * @author zgr
 * @date 2023/7/18 15:35
 * @description
 */
public class AuthException extends AuthenticationException {

    private static final long serialVersionUID = 8339196263238128128L;

    protected String errMsg;

    public AuthException(String msg, Throwable cause) {
        super(msg, cause);
        this.errMsg = msg;
    }

    public AuthException(String msg) {
        super(msg);
        this.errMsg = msg;
    }
}
